<?php

	function opencv_allmember($param="all")
	{
	include '../connect.php';
	$sql = "SELECT count(user_name) FROM $table_name ";
	switch($param){
		case all: 
			$sql .= "" ;
			break;
		case still_looking:
			$sql .= "WHERE still_looking=1";
			break;
		case last_updated:
			// afficher nbr profil maj aujourd'hui
			break;
		
		default:
			break;	}	
		
	$result = mysql_query($sql,$db)
		or die("Exécution requête 1 impossible".mysql_error()); 
	$nomb = mysql_fetch_array($result);	
	return $nomb[0];
	}
	
	function opencv_delete_user($name)
	{
	$sql = "DELETE FROM $table_name WHERE user_name=$name";
	$result = mysql_query($sql,$db)
		or die("Exécution requête 1 impossible".mysql_error()); 
	}

?>